package com.leoman.service;

import com.leoman.entity.UserMoney;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * UserMoneyService
 * Created by 涂奕恒 on 2016/11/23 0023 下午 3:55.
 */
public interface UserMoneyService extends ICommonService<UserMoney> {

    // 提现列表 or 充值列表（分页）
    Page<UserMoney> pageByParams(Integer type,
                                 String nickName,
                                 String account,
                                 Integer userType,
                                 Integer accountType,
                                 String startTime,
                                 String endTime,
                                 Integer pageNum,
                                 Integer pageSize);

    // 确认提现
    Integer confirmMoney(Integer userMoneyId);

    // 一键确认提现
    Integer batchConfirm(String ids);

    // 修改提现状态
    void changeMoneyStatus(Integer id);

    // 根据订单流水号获取微信支付信息
    Map<String, Object> getPayInfo(HttpServletRequest request, HttpServletResponse response, String orderNum, String money);
}